﻿<%@ Page Language="C#" MasterPageFile="~/Areas/Commerce/Views/Shared/Backend.Master"Inherits="System.Web.Mvc.ViewPage<Kooboo.Web.ChangePasswordModel>" %>

<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <%:"Change Password".Localize() %>
</asp:Content>
<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    <h3 class="title">
        <%: "Change Password".Localize()%></h3>
    <ul class="tabs clearfix">
        <li><a href="/commerce/accounts">
            <%: "Administrators".Localize()%></a></li>
        <li class="current"><a href="/commerce/accounts/changepassword">
            <%: "Change Password".Localize() %></a></li>
    </ul>
    <div class="tab-content">
        <p>
            <%:"Use the form below to change your password.".Localize() %>
        </p>
        <p>
            <%:"New passwords are required to be a minimum of".Localize() %>
            <%: ViewData["PasswordLength"] %>
            <%:"characters in length.".Localize() %>
        </p>
        <div class="common-form">
            <% using (Html.BeginForm())
               { %>
            <%: Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.".Localize()) %>
            <fieldset>
                <legend></legend>
                <table>
                    <tbody>
                        <tr>
                            <th>
                                <%: Html.LabelFor(m => m.OldPassword) %>
                            </th>
                            <td>
                                <%: Html.PasswordFor(m => m.OldPassword) %>
                                <%: Html.ValidationMessageFor(m => m.OldPassword) %>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <%: Html.LabelFor(m => m.NewPassword) %>
                            </th>
                            <td>
                                <%: Html.PasswordFor(m => m.NewPassword) %>
                                <%: Html.ValidationMessageFor(m => m.NewPassword) %>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <%: Html.LabelFor(m => m.ConfirmPassword) %>
                            </th>
                            <td>
                                <%: Html.PasswordFor(m => m.ConfirmPassword) %>
                                <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </fieldset>
            <p class="buttons">
                <input type="submit" value="<%:"Change Password".Localize() %>" class="button" />
            </p>
            <% } %>
        </div>
    </div>
</asp:Content>
